package org.jeecg.basic.mapper;

import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.basic.entity.MesBomItemSetup;

import java.util.List;

/**
 * @Description: 产品BOM
 * @Author: LiCY
 * @Date: 2023-06-16
 * @Version: V1.0
 */
public interface MesBomItemSetupMapper extends MppBaseMapper<MesBomItemSetup> {

    /**
     * 通过主表id删除子表数据
     *
     * @param mainId 主表id
     * @return boolean
     */
    public boolean deleteByMainId(@Param("mainId") String mainId);

    /**
     * 通过主表id查询子表数据
     *
     * @param mainId 主表id
     * @return List<MesBomItemSetup>
     */
    public List<MesBomItemSetup> selectByMainId(@Param("mainId") String mainId);

}
